package jzoffer.q02singleton;

/**
 * Author:   dengxin
 * Date:     2020/4/17 5:27 下午
 */
public class Singleton1 {
    private Singleton1(){};

    private static class Singleton1Holder {
        private static Singleton1 instance = new Singleton1();
    }

    public Singleton1 getInstance() {
        return Singleton1Holder.instance;
    }

}
